static int cmap_bright[] = { 232,151,254, 230,143,254, 228,135,253,
 226,126,253, 225,118,253, 223,109,253, 221,101,253, 219, 93,253, 216, 84,252,
 213, 76,252, 210, 67,252, 207, 59,252, 204, 51,251, 201, 42,251, 197, 35,251,
 193, 30,250, 188, 25,250, 184, 20,249, 179, 15,248, 175, 10,248, 170,  5,247,
 166,  1,247, 162,  1,246, 158,  1,245, 154,  0,244, 150,  0,243, 145,  0,242,
 141,  0,241, 138,  0,240, 134,  0,239, 131,  0,238, 128,  0,238, 124,  0,237,
 121,  0,236, 118,  0,235, 115,  1,234, 113,  4,234, 111,  7,233, 108,  9,232,
 106, 12,232, 104, 15,231, 102, 18,230, 100, 22,230,  99, 26,230,  98, 31,231,
  97, 35,231,  95, 40,231,  94, 44,231,  93, 49,231,  92, 54,232,  91, 59,232,
  91, 64,233,  90, 69,234,  89, 74,235,  89, 79,236,  88, 84,236,  87, 89,238,
  87, 95,239,  86,101,240,  86,107,242,  85,113,243,  85,118,244,  84,124,246,
  84,131,247,  84,137,248,  83,143,249,  83,149,251,  83,156,252,  82,162,253,
  82,168,254,  81,174,254,  81,179,254,  80,185,254,  79,190,254,  79,196,254,
  78,202,254,  78,207,254,  76,211,252,  75,215,249,  74,219,247,  73,223,245,
  72,227,243,  71,231,241,  69,235,239,  67,238,235,  65,240,231,  62,243,227,
  60,245,223,  58,248,219,  55,251,215,  53,252,211,  50,253,206,  47,253,201,
  44,253,195,  42,254,190,  39,254,185,  36,254,180,  33,254,174,  31,254,168,
  29,253,162,  26,253,156,  24,252,150,  22,252,144,  19,252,138,  18,250,131,
  16,248,124,  15,246,118,  14,243,111,  12,241,104,  11,239, 98,  10,236, 91,
   9,234, 85,   8,231, 78,   8,229, 72,   7,226, 66,   7,224, 60,   6,221, 54,
   6,219, 48,   7,217, 43,   7,216, 38,   8,214, 33,   9,213, 29,  10,211, 24,
  10,210, 19,  11,208, 15,  14,209, 12,  16,210, 10,  19,211,  8,  21,212,  6,
  24,213,  4,  27,214,  2,  29,215,  0,  34,217,  0,  39,220,  0,  44,222,  0,
  48,224,  0,  53,227,  0,  58,229,  0,  63,231,  0,  69,234,  0,  74,237,  0,
  80,239,  0,  86,242,  0,  92,245,  0,  98,247,  0, 104,250,  0, 111,250,  0,
 118,251,  0, 125,252,  0, 132,253,  0, 139,253,  0, 146,254,  0, 153,255,  0,
 159,255,  0, 165,255,  0, 171,255,  0, 177,255,  0, 183,255,  0, 189,255,  0,
 195,255,  0, 200,255,  0, 204,255,  0, 209,255,  0, 214,255,  0, 219,255,  0,
 224,255,  0, 227,254,  0, 230,252,  0, 233,250,  0, 235,249,  0, 238,247,  0,
 241,245,  0, 243,244,  0, 245,240,  0, 247,236,  0, 248,232,  0, 250,228,  0,
 251,224,  1, 253,220,  1, 254,216,  1, 254,211,  1, 254,206,  1, 254,200,  1,
 254,195,  1, 254,189,  1, 254,184,  1, 254,179,  2, 255,173,  1, 255,168,  1,
 255,162,  1, 255,157,  0, 255,151,  0, 255,145,  0, 254,140,  0, 254,134,  0,
 253,129,  0, 252,124,  0, 251,118,  0, 250,113,  0, 249,108,  0, 248,102,  0,
 247, 98,  0, 245, 93,  0, 244, 88,  0, 243, 83,  0, 241, 79,  0, 240, 74,  0,
 239, 70,  0, 237, 66,  0, 235, 63,  0, 234, 59,  0, 232, 56,  0, 230, 53,  0,
 229, 49,  0, 227, 46,  0, 225, 45,  2, 224, 43,  4, 222, 42,  5, 221, 40,  7,
 219, 38,  9, 217, 37, 11, 216, 36, 13, 215, 37, 16, 215, 38, 20, 214, 38, 23,
 213, 39, 26, 212, 40, 29, 212, 40, 33, 212, 42, 36, 212, 46, 41, 213, 49, 45,
 213, 52, 49, 214, 56, 53, 214, 59, 57, 215, 62, 62, 216, 67, 66, 218, 73, 71,
 219, 79, 76, 221, 85, 81, 223, 90, 86, 224, 96, 91, 226,102, 96, 228,108,100,
 231,115,104, 233,121,107, 235,128,111, 238,134,115, 240,141,118, 243,147,122,
 245,153,124, 246,159,125, 248,165,126, 250,171,128, 251,177,129, 253,183,130,
                                                                255,189,132 };
